package com.cyzy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("student")
public class Student {

  @TableId(type = IdType.AUTO)
  private Integer studentId;
  private String studentName;
  private String studentSex;
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
  private LocalDate birthDate;
  private String idCard;
  private String studentPhone;
  private String studentPwd;
  private String studentEmail;
  private String fileId;
  private String studentStatus;
  private String studentNote;
  private Integer campusId;


}
